package Pattern.StatePattern.Program.programtwo;

public class Final implements State {
    private State state;

    public Final() {
    }

    public Final(State state) {
        this.state = state;
        change(this.state);
    }

    public void doubleScore() {
        System.out.println("Final could have doubleScore");
    }

    public void changeCards() {
        System.out.println("Final can changeCards");
    }

    public void peekCards() {
        System.out.println("Final can peek Cards");
    }

    public void play() {
        System.out.println("Final Play Game");
    }

    @Override
    public void change(State state) {
        play();
        doubleScore();
        changeCards();
        peekCards();
    }
}
